package com.itheima.service;

import com.itheima.dao.StudentDao;
import com.itheima.domain.Student;

import java.util.List;

public class StudentService {
    /*添加数据*/
   public  int add(Student student){
        return  new StudentDao().insertStudent(student);
    }

    //所有
     public List<Student> selectAll()  {
       return  new StudentDao().selectAll();
    }

    public int delectStudent(int sid ){
        return new StudentDao().deleteStudent(sid);
    }
}
